package me.luger.core.mvc.filter.pagecache.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * PageCache
 *
 * @author luger
 * @date 2016/8/16 0016
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
public @interface PageCache {
    /**
     * 缓存key
     *
     * @return
     */
    String keyPrefix() default "";

    int timeToLiveSeconds() default 30 * 60;

    /**
     * 缓存key后缀,如果不设置则key为key()的值
     *
     * @return
     */
    String[] keyParams() default {};
}
